#ifndef WOKER_H
#define WOKER_H

#include <QObject>
#include <QThread>
#include <QVector>
#include <QMutex>
#include "point.h"
#include "utils.h"


class worker : public QThread
{
    Q_OBJECT
public:
    worker(QVector<Point> *pointsPtr,double *valueBestNow,QString *tourBestStr,QVector<int> *res,double tInit,double tFinal,double alpha,QMutex *mutex);
private:
    QVector<Point> points;
    double *valueBestNow;
    QString *tourBestStr;
    QVector<int> *res;
    double tInit,tFinal,alpha;
    QMutex *locker;

    // QThread interface
protected:
    virtual void run() override;
};

#endif // WOKER_H
